﻿using dz.u9.jky.schema.Common;
using dz.u9.jky.schema.SM;
using dz.util.core;
using Microsoft.AspNetCore.Mvc;

namespace dz.u9.webapi.Controllers
{
    /// <summary>
    /// 销售调价单
    /// </summary>
    [ApiController]
    [Route("api/[controller]/[action]")]
    public class SalePriceAdjustController : U9BaseController
    {
        [HttpPost]

        public async Task<U9CResult> Add(DzSalePriceAdjustmentDTO dto)
        {
            return await U9Invoke(JsonUtil.Serialize(dto), new ApiParm() { Url = "DzSalePriceAdjust/Add", Desc = "销售调价单新增" }); ;
        }

        [HttpPost]
        public async Task<U9CResult> SubmitAndAudit(CommonDoc doc)
        {
            return await U9Invoke(JsonUtil.Serialize(doc), new ApiParm() { Url = "DzSalePriceAdjust/SubmitAndAudit", Desc = "销售调价单提交审核" }); ;
        }

        
    }
}
